<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script type="text/javascript" src="../Public/plugins/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="../Public/plugins/ueditor/ueditor.all.min.js"></script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" src="../Public/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8">
    window.UEDITOR_HOME_URL = "../Public/plugins/ueditor/";
    $(document).ready(function() {
        UE.getEditor('introduction', {
            initialFrameHeight: 500,
            initialFrameWidth: '100%',
            serverUrl: "/Ueditor/upload/cid/{$Think.get.cid}"
        });
    });
    </script>
</head>

<body oncontextmenu="self.event.returnValue=false" ondragstart="return false" class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>公司简介<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">新增、修改</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">修改公司简介</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" action="/Customer/clist" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="cid" value="{$info.cid}" />
                        <div class="box-body">
                            <div class="form-group">
                                <div class="col-sm-12">
                                    <textarea id="introduction" name="introduction" class="textarea" placeholder="Place some text here" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;">{$info.introduction}</textarea>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <button type="submit" class="btn btn-primary">保存</button>
                            <a class="btn btn-warning" href="/Customer/clist" role="button">返回</a>
                        </div>
                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
    $("#CustomerManager").addClass("active");
    $("#customer_list").addClass("active");

    $(function() {
        // Replace the <textarea id="editor1"> with a CKEditor
        // instance, using default configuration.
        //      CKEDITOR.replace('introduction');
        //bootstrap WYSIHTML5 - text editor
        // $(".textarea").wysihtml5();
    });
    </script>
</body>

</html>
